﻿export default [
  // 一、动态功能部分的路由
  {
    path: 'eventDefine',
    component: resolve => require(['../views/dynamicFun/eventDefine/EventDefine.vue'], resolve),
    meta: {title: '动态功能事件', requiresAuth: true}
  },
  {
    path: 'maintainFun',
    component: resolve => require(['../views/dynamicFun/maintainFun/MaintainFun.vue'], resolve),
    meta: {title: '动态功能设定', requiresAuth: true}
  },
  {
    path: 'maintainMulti',
    component: resolve => require(['../views/dynamicFun/maintainMulti/MaintainMulti.vue'], resolve),
    meta: {title: '多表功能设定', requiresAuth: true}
  },
  {
    path: 's_table',
    component: resolve => require(['../views/dynamicFun/maintainMenu/MaintainMenu.vue'], resolve),
    meta: {title: '动态功能页面展示', requiresAuth: true}
  },
  // 二、自定义页面的事件部分
  {
    path: 'dynamicEvents',
    component: resolve => require(['../views/resource/dynamicEvents/DynamicEvents.vue'], resolve),
    meta: {title: '表单事件定义', requiresAuth: true}
  },
  {
    path: 'workflowEvents',
    component: resolve => require(['../views/resource/workflowEvents/WorkflowEvents.vue'], resolve),
    meta: {title: '流程事件定义', requiresAuth: true}
  },
  // 三、动态表单页面部分
  {
    path: 'dynamicPage',
    component: resolve => require(['../views/page_dynamicTable/dynamicPage/DynamicPage.vue'], resolve),
    meta: {title: '动态页面管理', requiresAuth: true}
  },
  {
    path: 'dynamicMenu',
    component: resolve => require(['../views/page_dynamicTable/dynamicMenu/DynamicMenu.vue'], resolve),
    meta: {title: '动态页面展示', requiresAuth: true}
  },
  {
    path: 'dynamicMenuPage',
    component: resolve => require(['../views/page_dynamicTable/dynamicMenu/DynamicMenu_newPage.vue'], resolve),
    meta: {title: '动态页面展示_新的窗口打开的页面展示', requiresAuth: true}
  },
  {
    path: 'dynamicWorkflowPage',
    component: resolve => require(['../views/page_dynamicTable/dynamicWorkflowPage/DynamicWorkflowPage.vue'], resolve),
    meta: {title: '动态表单流程页面管理', requiresAuth: true}
  },
  {
    path: 'dynamicWorkflowMenu',
    component: resolve => require(['../views/page_dynamicTable/dynamicWorkflowMenu/DynamicWorkflowMenu.vue'], resolve),
    meta: {title: '流程页面展示', requiresAuth: true}
  },
  {
    path: 'dynamicWorkflowMenuPage',
    component: resolve => require(['../views/page_dynamicTable/dynamicWorkflowMenu/DynamicWorkflowMenu_newPage.vue'], resolve),
    meta: {title: '流程页面展示_在新的页面打开时', requiresAuth: true}
  },
  // 三、动态表单v2页面部分
  {
    path: 'dynamicPage_v2',
    component: resolve => require(['../views/page_dynamicTable_v2/dynamicPage/DynamicPage.vue'], resolve),
    meta: {title: '动态页面管理', requiresAuth: true}
  },
  {
    path: 'dynamicSettings_v2',
    component: resolve => require(['../views/page_dynamicTable_v2/dynamicPage/EditSettings.vue'], resolve),
    meta: {title: '动态页面配置', requiresAuth: true}
  },
  {
    path: 'dynamicMenu_v2',
    component: resolve => require(['../views/page_dynamicTable_v2/dynamicMenu/DynamicMenu.vue'], resolve),
    meta: {title: '动态页面展示', requiresAuth: true}
  },
  // 元数据表单页面相关部分
  {
    path: 'dynamicMetaTemplate',
    component: resolve => require(['../views/page_metadataTable/dynamicMetaTemplate/DynamicMetaTemplate.vue'], resolve),
    meta: {title: '元数据动态模板管理', requiresAuth: true}
  },
  {
    path: 'metaDynamicPage',
    component: resolve => require(['../views/page_metadataTable/metaDynamicPage/MetaDynamicPage.vue'], resolve),
    meta: {title: '元数据动态页面管理', requiresAuth: true}
  },
  {
    path: 'metaDynamicMenu',
    component: resolve => require(['../views/page_metadataTable/metaDynamicMenu/MetaDynamicMenu.vue'], resolve),
    meta: {title: '元数据动态页面展示', requiresAuth: true}
  },
  {
    path: 'metaDynamicMenuPage',
    component: resolve => require(['../views/page_metadataTable/metaDynamicMenu/MetaDynamicMenu_newPage.vue'], resolve),
    meta: {title: '元数据动态页面展示_点击打开的新页面展示', requiresAuth: true}
  },
  {
    path: 'metaWorkflowPage',
    component: resolve => require(['../views/page_metadataTable/metaWorkflowPage/MetaWorkflowPage.vue'], resolve),
    meta: {title: '元数据流程页面管理', requiresAuth: true}
  },
  {
    path: 'metaWorkflowMenu',
    component: resolve => require(['../views/page_metadataTable/metaWorkflowMenu/MetaWorkflowMenu.vue'], resolve),
    meta: {title: '元数据流程页面展示', requiresAuth: true}
  },
  {
    path: 'metaWorkflowMenuPage',
    component: resolve => require(['../views/page_metadataTable/metaWorkflowMenu/MetaWorkflowMenu_newPage.vue'], resolve),
    meta: {title: '元数据流程页面展示_点击打开的新页面展示', requiresAuth: true}
  },
  // 移动端相关的页面
  {
    path: 'appDynamicPage',
    component: resolve => require(['../views/page_appTable/appDynamicPage/AppDynamicPage.vue'], resolve),
    meta: {title: '移动端页面管理', requiresAuth: true}
  },
  {
    path: 'hostJs',
    component: resolve => require(['../views/resource/hostJs/HostJs.vue'], resolve),
    meta: {title: 'Host脚本管理', requiresAuth: true}
  },
  // BI相关
  {
    path: 'dataSource',
    component: resolve => require(['../views/resource/dataSource/DataSource.vue'], resolve),
    meta: {title: '数据源管理', requiresAuth: true}
  },
  {
    path: 'dataSet',
    component: resolve => require(['../views/resource/dataSet/DataSet.vue'], resolve),
    meta: {title: '数据集管理', requiresAuth: true}
  },
  {
    path: 'dataSetForm',
    component: resolve => require(['../views/resource/dataSet/DataSetForm.vue'], resolve),
    meta: {title: '数据集管理-新增编辑', requiresAuth: true}
  },
  // 仪表板
  {
    path: 'biDashboardPage',
    component: resolve => require(['../views/page_biDashboard/biDashboardPage/BiDashboardPage.vue'], resolve),
    meta: {title: '仪表板管理', requiresAuth: true}
  },
  {
    path: 'biSettings',
    component: resolve => require(['../components/BiComponents/BiSettings.vue'], resolve),
    meta: {title: '仪表板管理-配置设定', requiresAuth: true}
  },
  {
    path: 'biDashboardMenu',
    component: resolve => require(['../views/page_biDashboard/biDashboardMenu/BiDashboardMenu.vue'], resolve),
    meta: {title: '仪表板页面', requiresAuth: true}
  }
]
